<table>
	<thead>
		<tr>
			<th>商品编号</th>
			<th>商品图片</th>
			<th>商品名称</th>
			<th>数量</th>
			<th>属性</th>
			<th>单价</th>
			<th>金额小计</th>
			<th>操作</th>
		</tr>
	</thead>
	<tbody>
		<volist name="order_goods" id="g">
		<tr id="tr-{$g.id}">
			<td align="center">{$g.goods_id}</td>
			<td align="center">
				<a href="{$g.original}" target="_blank">
				<img src="{$g.thumb}" alt="" style="width:80px;height:60px;" />
				</a>
			</td>
			<td align="left" title="{$g.describe}">
				<b>{$g.goods_name}</b> ({$g.ename})
			</td>
			<td align="left">{$g.attr_name}:{$g.attr_title}</td>
			<td align="right">
				<input type="text" id="goods_number_{$g.id}" class="input-text" value="{$g.goods_number}" data="{$g.id}" style="width:40px;text-align:center;" />
				
			</td>
			<td align="left"><input type="button" class="button" value="更新" onclick="javascript:orderGoodsUpdate({$g.id});" /></td>
			<td align="right">{$g.goods_price}</td>
			<td align="right">{$g.subtotal}</td>
			<td align="center">
				<input type="button" class="button" value="删除" onclick="javascript:orderGoodsDel({$g.id});" />
			</td>
		</tr>
		</volist>
	</tbody>
	<tfoot>
		<tr>
			<td align="center">共 {$goods_count} 种</td>
			<td></td>
			<td></td>
			<td align="center">
				<b>{$sum_goods_number}</b>
			</td>
			
			<td></td>
			<td></td>
			<td align="right">
    			<b>{$sum_goods_price}</b>
			</td>
			<td></td>
		</tr>
	</tfoot>
</table>